package org.meproj.cloudscale.database;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;

public class DbUtil {

	public List<Long> getTimeForAllSameBurst(float violationDegree) {
		List<Long> timeList = new ArrayList<>();
		
		return timeList;
	}
	
	public SortedSet<Float> getLast10BurstPattern(List<Long> timeList, int timePeriodForLocalMaxima) {
		
		SortedSet<Float> last10Burst = new TreeSet<Float>();
		
		return last10Burst;
	}
	
	public int getCurrentIncreaseInVMs(String userId) {
		int countOfVMs = 0;
		
		
		return countOfVMs;
	}
	
	public int setCurrentIncreaseInVMs(String userId, int newCountOfVMs) {
		int currentIncreaseOfVMs = newCountOfVMs - getCurrentTotalVMs(userId);
		
		return currentIncreaseOfVMs;
	}
	
	public int getCurrentTotalVMs(String userId) {
		int countOfVMs = 0;
		
		
		return countOfVMs;

	}
	
	
	
}
